package com.quyeying.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户表
 * </p>
 *
 * @author skx
 * @since 2022-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_merchant")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TblMerchantEntity extends Model<TblMerchantEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客服电话
     */
    private String servicePhone;

    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 商户头像
     */
    private String merchantHeadimg;

    /**
     * 身份证姓名
     */
    private String realName;

    /**
     * 身份证号
     */
    private String idCardNo;

    /**
     * 身份证正面
     */
    private String idCardJust;

    /**
     * 身份证反面
     */
    private String idCardBack;

    /**
     * 账号
     */
    private String account;

    /**
     * 排序值
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 企业认证资料
     */
    @TableField(exist = false)
    private TblMerchantAuthenticationEntity tblMerchantAuthenticationEntity;

    /**
     * 0达人   1商家
     */
    private Integer type;

    /**
     * 企业认证许可证
     */
    @TableField(exist = false)
    private List<TblMerchantLicenceEntity> tblMerchantLicenceEntityList;

    /**
     * 人气
     */
    @TableField(exist = false)
    private Long popularity;

    /**
     * 关注状态
     * @return
     */
    @TableField(exist = false)
    private Boolean attentionStatus;

    /**
     * 验证码
     */
    @TableField(exist = false)
    private String verificationCode;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
